package com.itheima.activiti.dao;


import com.itheima.activiti.domain.ActGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface ActGroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ActGroup record);

    int insertSelective(ActGroup record);

    ActGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ActGroup record);

    int updateByPrimaryKey(ActGroup record);

    @Select("select ar.name from act_group ar left join act_user_group aur  on aur.group_id= ar.id where aur.user_id=#{userId} ")
    List<String> selectByUserId(Integer userId);
}